//
//  XingDouTableViewCell.m
//  XingRun
//
//  Created by 赵颜彬 on 17/1/13.
//  Copyright © 2017年 赵颜彬. All rights reserved.
//

#import "XingDouTableViewCell.h"

@implementation XingDouTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {

        self.name = [[UILabel alloc] init];
        self.name.font = [UIFont fontWithName:@"Helvetica" size:12];
        _name.text = @"兑换商品";
        [self.contentView addSubview:_name];
        
     
        
        self.time = [[UILabel alloc] init];
        _time.text = @"09 - 11\n18 : 24";
        _time.numberOfLines = 0;
        self.time.font = [UIFont fontWithName:@"Helvetica" size:12];
        [self.contentView addSubview:_time];
        
 
        
        self.number = [[UILabel alloc] init];
        _number.text = @"-100星豆";
        self.number.font = [UIFont fontWithName:@"Helvetica" size:12];
        [self.contentView addSubview:_number];
        
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    self.time.frame = CGRectMake(20 * WIDTH, 10 * HEIGHT, 80 * WIDTH, 60 * HEIGHT);
    self.number.frame = CGRectMake(90 * WIDTH, 10 * HEIGHT, 100 * WIDTH, 30 *HEIGHT);
    self.name.frame =CGRectMake(90 * WIDTH, 40 * HEIGHT, 150 * WIDTH, 30 * HEIGHT);
    }
@end
